import { all, edit, add, del, repwd, auth } from "@/api/purview/agent";
import store from "@/utils/store/cache"
export const actions = {
    //  列表
    all(context: any, isReLoad = false) {
        store.loadCacheDataByFun(context, 'all', all, null, { isReLoad });
    },
    edit(context: any, params: any) {
        return edit(params)
    },
    add(context: any, params: any) {
        return add(params)
    },
    repwd(context: any, params: any) {
        return repwd(params)
    },
    del(context: any, params: any) {
        return del(params)
    },
    //  设置菜单
    auth(context: any, params: any) {
        return auth(params)
    }
}
